package org.example.car.service.service.impl;

import org.example.car.service.domain.Machine;
import org.example.car.service.mapper.MachineMapper;
import org.example.car.service.service.MachineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Yanyanyu
 * @Date: 2024/6/30 19:09
 */
@Service
public class MachineServiceImpl implements MachineService {

    @Autowired
    private MachineMapper machineMapper;

    @Override
    public List<Machine> getList(Machine machine) {
        return machineMapper.getList(machine);
    }

    @Override
    public boolean add(Machine machine) {
        return machineMapper.add(machine);
    }

    @Override
    public boolean update(Machine machine) {
        return machineMapper.update(machine);
    }

    @Override
    public boolean del(Integer machineId) {
        return machineMapper.del(machineId);
    }

    @Override
    public void insertAll(List<Machine> machineList) {
        machineMapper.insertAll(machineList);
    }
}
